import Vue from 'vue'
import Vuex from 'vuex'
import {transObj,transString} from '@/utils/saveInfo';

Vue.use(Vuex)

const relevance = 'info'

export default new Vuex.Store({
  state: {
    info:transObj(relevance)
  },
  mutations: {
    saveInfo(state,payload){
      transString(relevance,payload)
      state[relevance] = transObj(relevance)
    }
  },
  actions: {
  },
  modules: {
  }
})
